package main

import(
	"log"
	"github.com/gin-gonic/gin"
)

func main(){
	Port := "8001"
	router := gin.Default()
	req := &Req{C: make(chan string)}
	req.start()
	rev := &Rev{C: make(chan string)}
	router.GET("/worm/test", rev.Test)
	log.Println("监听端口:", Port)
	router.Run(":" + Port)
}